package wibrst.geom {
	/**
	 * ...
	 * @author wibrst@qq.com
	 */
	public class BlockNode {
		private var _c:int;
		private var _r:int;
		
		public function BlockNode( c:int = 0, r:int = 0 ) { 
			this._r = r;
			this._c = c;
		}
		
		public function clone( ):BlockNode {
			return new BlockNode( this._c, this._r );
		}
		
		public function get simpleId():String {
			return _c.toString() +"," + _r.toString();
		}
		
		public function toString():String {
			return "(" +_c + "," + _r + ")";
		}
		
		public function equal( bn:BlockNode ):Boolean {
			return bn._r == this._r && bn._c == this._c;
		}
		
		public function get c():int { return _c; }
		public function get r():int { return _r; }
		
		public function set c(value:int):void {
			_c = value;
		}
		
		public function set r(value:int):void {
			_r = value;
		}
	}

}